//
//  OrderModel.h
//  RainbowFM
//
//  Created by chenli on 14/12/29.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseItem.h"
@interface OrderListItem : BaseItem

@property (nonatomic,strong) NSString *autoConfirmRefundCountdown;
@property (nonatomic,strong) NSString *autoReceiptCountdown;
@property (nonatomic,strong) NSString *buyerAddr;
@property (nonatomic,strong) NSString *buyerLogisName;
@property (nonatomic,strong) NSString *buyerLogisNum;
@property (nonatomic,strong) NSString *buyerLogisTime;
@property (nonatomic,strong) NSString *buyerName;
@property (nonatomic,strong) NSString *buyerPhone;
@property (nonatomic,strong) NSString *cancelStatus;
@property (nonatomic,strong) NSString *delayStatus;
@property (nonatomic,strong) NSString *delayTime;
@property (nonatomic,strong) NSString *logisName;
@property (nonatomic,strong) NSString *logisNum;
@property (nonatomic,strong) NSString *logisTime;
@property (nonatomic,strong) NSString *merchantName;
@property (nonatomic,strong) NSString *merchantPhone;
@property (nonatomic,strong) NSString *orderDate;
@property (nonatomic,strong) NSString *orderId;
@property (nonatomic,strong) NSString *orderStatus;
@property (nonatomic,strong) NSString *prodCurrentPrice;
@property (nonatomic,strong) NSString *prodImg;
@property (nonatomic,strong) NSString *prodName;
@property (nonatomic,strong) NSString *prodNum;
@property (nonatomic,strong) NSString *prodPrice;
@property (nonatomic,strong) NSString *prodProperty;
@property (nonatomic,strong) NSString *prodTotalPrice;
@property (nonatomic,strong) NSString *refundReason;
@property (nonatomic,strong) NSString *refundReqTime;
@property (nonatomic,strong) NSString *refundRespTime;
@property (nonatomic,strong) NSString *refundStatus;
@property (nonatomic,strong) NSString *remindStatus;
@property (nonatomic,strong) NSString *remindTime;

@end


@interface OrderModel : UIView

+(instancetype)sharedModel;

-(void)createOrderWithProdID:(NSString *)prodId prodPrice:(NSString *)prodPrice_ prodName:(NSString *)prodName prodImg:(NSString *)prodImage prodNum:(NSString *)prodNum buyerName:(NSString *)buyerName_ buyerPhone:(NSString *)phone buyerAddr:(NSString *)address result:(void(^)(BOOL success,NSString *orderId))res;

//付款
-(void)paymentWithOrderID:(NSString *)orderId payType:(NSString *)type result:(void(^)(BOOL success,NSString *payURL,NSString *msg))res;
//退款
-(void)refundOrderWithOrderID:(NSString *)orderId desc:(NSString *)des result:(void(^)(BOOL success,NSString *msg))res;

//延迟收货
-(void)delayOrderWithOrderID:(NSString *)orderId result:(void(^)(BOOL success,NSString *msg))res;

//确认收货
-(void)receiptOrderWithOrderID:(NSString *)orderId result:(void(^)(BOOL success,NSString *msg))res;

-(void)fetchUserOrderListWithStatus:(NSString *)status currentPage:(NSString *)start result:(void(^)(BOOL success,NSArray *array,NSString *msg))res;


-(void)cancelOrderWithOrderID:(NSString *)orderId result:(void(^)(BOOL success,NSString *msg))res;

@end
